/**
 * @properties={typeid:24,uuid:"F62374AB-C00A-4335-895B-D09998B3F6B1"}
 * @AllowToRunInFind
 */
function buscar_proyeccion() 
{ 
	//Buscar Rango de Fechas pedido //////////////////////////////
	foundset.find()
	var d1 = globals.gFechaDesde
	d1.setHours(00);
	d1.setMinutes(00);
	d1.setSeconds(00);             
	var df1 = utils.dateFormat(d1, 'dd-MM-yyyy HH:mm:ss')
	var d2 = globals.gFechaHasta
	d2.setHours(23);
	d2.setMinutes(59);
	d2.setSeconds(59);
	var df2 = utils.dateFormat(d2, 'dd-MM-yyyy HH:mm:ss')
	foundset.fecha_mov=df1+'...' + df2+'|dd-MM-yyyy HH:mm:ss'  
	foundset.saldo = '> 0'
	foundset.ctacte_cl_to_tab_mov_cl.d_h=1
	var found = foundset.search();
	if (found != 0)
	{
		foundset.sort('fecha_vto_text asc')
	}
	else
	{
		globals.gsaldo_aux=0.000
		globals.DIALOGS.showWarningDialog('Aviso',"No hay movimientos de ctacte. para el rango solicitado",'OK');
	}
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"2B830570-C213-4DED-BF9E-CC83BC944D1C"}
 */
function imprimir(event) 
{
	forms.proyec_cobran_2_imp.controller.showPrintPreview()
}

/**
 * @properties={typeid:24,uuid:"CABC91B9-5497-43A3-9200-B464317592F8"}
 */
function pdf() 
{
	globals.metodoPdf('proyec_cobran_2_imp','proyec_cobran',false)
}
